package cn.itsource.pethome.product.domain;

import cn.itsource.pethome.basic.domain.Basedomain;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class Product extends Basedomain {
    //服务名称
    private String name;
    //服务图片
    private String resources;
    //服务售价
    private BigDecimal saleprice;
    //下架时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date offsaletime = new Date();
    //上架时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date onsaletime;
    //状态   默认为下架
    private Integer state = 0;
    //成本价
    private String costprice;
    //创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createtime = new Date();
    //销量
    private Integer salecount;
    //服务明细
    private ProductDetail productDetail;

}
